Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes for methods that use raw sql to work properly with scopes that use joins #38

Merged
merged 2 commits into from Apr 22, 2011

Conversation

raelik
Copy link
Contributor

@raelik raelik commented Feb 14, 2011

Because the descendants, subtree and subtree.arrange methods use raw sql as part of their conditions, using them with another scope method breaks if that scope uses joins. These commit fix that by adding the table name to the sql. Any other instances I find like this that break joins, I'll commit to this branch.

Blane Dabney added 2 commits December 17, 2010 15:48
… use joins by including the table name in the condition sql.
…operly with scopes that use joins by including the table name in the condition sql.
@swrobel
Copy link

swrobel commented Feb 14, 2011

Second this!

@chrismealy
Copy link

This would be great.

@moiristo
Copy link

please merge this!

@sobrinho
Copy link

@stefankroes, could you merge this? :)

@stefankroes
Copy link
Owner

sorry for the long wait. merged

@stefankroes stefankroes reopened this Apr 22, 2011
@stefankroes stefankroes merged commit 5e0757a into stefankroes:master Apr 22, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants